home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / gnu / bash / bash_1135 / bash1135.zoo / bash-1.13.5 / PATCHES-ST < prev    next >
Encoding:
Text File  |  1994-03-20  |  9.0 KB  |  281 lines

  1. --- 1.1    1994/01/05 23:46:34
  2. +++ general.c    1994/01/18 01:23:44
  3. @@ -695,6 +695,7 @@
  4.  #define to_lower(c) (uppercase_p(c) ? ((c) + 32) : (c))
  5.  #endif /* to_upper */
  6.  
  7. +#if !defined (atarist)
  8.  /* Compare at most COUNT characters from string1 to string2.  Case
  9.     doesn't matter. */
  10.  int
  11. @@ -732,6 +733,7 @@
  12.      }
  13.    return (*string1 | *string2);
  14.  }
  15. +#endif /* !atarist */
  16.  
  17.  /* Set the environment variables $LINES and $COLUMNS in response to
  18.     a window size change. */
  19. --- 1.1    1994/01/05 23:46:34
  20. +++ jobs.c    1994/01/06 00:24:16
  21. @@ -185,7 +185,7 @@
  22.  static void pipe_read (), pipe_close ();
  23.  #endif
  24.  
  25. -#if !defined (_POSIX_VERSION)
  26. +#if !defined (_POSIX_VERSION) && !defined(atarist)
  27.  
  28.  /* These are definitions to map POSIX 1003.1 functions onto existing BSD
  29.     library functions and system calls. */
  30. --- 1.1    1994/01/05 19:04:08
  31. +++ machines.h    1994/01/06 17:59:24
  32. @@ -1629,6 +1629,129 @@
  33.  #  undef HAVE_WAIT_H
  34.  #endif /* cadmus */
  35.  
  36. +/* ************************ */
  37. +/*                */
  38. +/*    Atari ST with MiNT    */
  39. +/*                */
  40. +/* ************************ */
  41. +#if defined (atarist)
  42. +#  define M_MACHINE "atarist"
  43. +#  define M_OS "MiNT"
  44. +
  45. +/* Required libraries for building on this system. */
  46. +#  define REQUIRED_LIBRARIES
  47. +
  48. +/* Define HAVE_SYS_SIGLIST if your system has sys_siglist[]. */
  49. +#  define HAVE_SYS_SIGLIST
  50. +
  51. +/* Undef HAVE_ALLOCA if you are not using Gcc, and neither your library
  52. +   nor compiler has a version of alloca ().  In that case, we will use
  53. +   our version of alloca () in alloca.c */
  54. +/* #undef HAVE_ALLOCA */
  55. +
  56. +/* Undef USE_GNU_MALLOC if there appear to be library conflicts, or if you
  57. +   especially desire to use your OS's version of malloc () and friends.  We
  58. +   reccommend against this because GNU Malloc has debugging code built in. */
  59. +#undef USE_GNU_MALLOC
  60. +
  61. +/* Define USE_GNU_TERMCAP if you want to use the GNU termcap library
  62. +   instead of your system termcap library. */
  63. +/* #define USE_GNU_TERMCAP */
  64. +
  65. +/* Define HAVE_SETLINEBUF if your machine has the setlinebuf ()
  66. +   stream library call.  Otherwise, setvbuf () will be used.  If
  67. +   neither of them work, you can edit in your own buffer control
  68. +   based upon your machines capabilities. */
  69. +#  define HAVE_SETLINEBUF
  70. +
  71. +/* Define HAVE_VFPRINTF if your machines has the vfprintf () library
  72. +   call.  Otherwise, printf will be used.  */
  73. +#  define HAVE_VFPRINTF
  74. +
  75. +/* Define USE_VFPRINTF_EMULATION if you want to use the BSD-compatible
  76. +   vfprintf() emulation in vprint.c. */
  77. +/* #  define USE_VFPRINTF_EMULATION */
  78. +
  79. +/* Define HAVE_GETGROUPS if your OS allows you to be in multiple
  80. +   groups simultaneously by supporting the `getgroups' system call. */
  81. +/* #define HAVE_GETGROUPS */
  82. +
  83. +/* Define SYSDEP_CFLAGS to be the flags to cc that make your compiler
  84. +   work.  For example, `-ma' on the RT makes alloca () work. */
  85. +/* This is a summary of the semi-machine-independent definitions that
  86. +   can go into SYSDEP_CFLAGS:
  87. +
  88. +    USGr4    -    The machine is running SVR4
  89. +    USGr4_2 -    The machine is running SVR4.2
  90. +    USG    -    The machine is running some sort of System V Unix
  91. +    AFS    -    The Andrew File System is being used
  92. +    BSD_GETPGRP -    getpgrp(2) takes a pid argument, a la 4.3 BSD
  93. +    TERMIOS_MISSING - the termios(3) functions are not present or don't
  94. +              work, even though _POSIX_VERSION is defined
  95. +    PGRP_PIPE -    Requires parent-child synchronization via pipes to
  96. +            make job control work right
  97. +    HAVE_UID_T -    Definitions for uid_t and gid_t are in <sys/types.h>
  98. +    HAVE_GETDTABLESIZE - getdtablesize(2) exists and works correctly
  99. +    HAVE_SETDTABLESIZE - setdtablesize(2) exists and works correctly
  100. +    HAVE_RESOURCE -    <sys/resource.h> and [gs]rlimit exist and work
  101. +    MKFIFO_MISSING - named pipes do not work or mkfifo(3) is missing
  102. +    REVERSED_SETVBUF_ARGS - brain-damaged implementation of setvbuf that
  103. +                has args 2 and 3 reversed from the SVID and
  104. +                ANSI standard
  105. +    NO_DEV_TTY_JOB_CONTROL - system can't do job control on /dev/tty
  106. +    BROKEN_SIGSUSPEND - sigsuspend(2) does not work to wake up processes
  107. +                on SIGCHLD
  108. +    HAVE_BCOPY -    bcopy(3) exists and works as in BSD
  109. +    HAVE_GETPW_DECLS - USG machines with the getpw* functions defined in
  110. +               <pwd.h> that cannot handle redefinitions in the
  111. +               bash source
  112. +    OPENDIR_NOT_ROBUST - opendir(3) allows you to open non-directory files
  113. +*/
  114. +#  define SYSDEP_CFLAGS -DHAVE_UID_T -DHAVE_BCOPY -D_BSD_SOURCE -DMKFIFO_MISSING
  115. +
  116. +/* Define HAVE_STRERROR if your system supplies a definition for strerror ()
  117. +   in the C library, or a macro in a header file. */
  118. +#define HAVE_STRERROR
  119. +
  120. +/* Define HAVE_DIRENT if you have the dirent library and a definition of
  121. +   struct dirent.  If not, the BSD directory reading library and struct
  122. +   direct are assumed. */
  123. +#define HAVE_DIRENT
  124. +
  125. +/* If your system does not supply /usr/lib/libtermcap.a, but includes
  126. +   the termcap routines as a part of the curses library, then define
  127. +   this.  This is the case on some System V machines. */
  128. +/* #define USE_TERMCAP_EMULATION */
  129. +
  130. +/* Define VOID_SIGHANDLER if your system's signal () returns a pointer to
  131. +   a function returning void. */
  132. +/* #define VOID_SIGHANDLER */
  133. +
  134. +/* Define EXTRA_LIB_SEARCH_PATH if your required libraries (or standard)
  135. +   ones for that matter) are not normally in the ld search path.  For
  136. +   example, some machines require /usr/ucblib in the ld search path so
  137. +   that they can use -lucb. */
  138. +/* #define EXTRA_LIB_SEARCH_PATH /usr/ucblib */
  139. +
  140. +/* Define SEARCH_LIB_NEEDS_SPACE if your native ld requires a space after
  141. +   the -L argument, which gives the name of an alternate directory to search
  142. +   for libraries specified with -llib.  For example, the HPUX ld requires
  143. +   this:
  144. +       -L lib/readline -lreadline
  145. +   instead of:
  146. +       -Llib/readline -lreadline
  147. + */
  148. +/* #define SEARCH_LIB_NEEDS_SPACE */
  149. +
  150. +/* Define LD_HAS_NO_DASH_L if your ld can't grok the -L flag in any way, or
  151. +   if it cannot grok the -l<lib> flag, or both. */
  152. +/* #define LD_HAS_NO_DASH_L */
  153. +#  if defined (LD_HAS_NO_DASH_L)
  154. +#   undef SEARCH_LIB_NEEDS_SPACE
  155. +#  endif /* LD_HAS_NO_DASH_L */
  156. +
  157. +#endif  /* atarist */
  158. +
  159.  /* **************************************************************** */
  160.  /*                                    */
  161.  /*            Generic Entry                   */
  162. --- 1.1    1994/01/06 00:33:18
  163. +++ subst.c    1994/03/20 19:44:14
  164. @@ -1622,7 +1622,7 @@
  165.    return (tname);
  166.  }
  167.  
  168. -#if !defined (_POSIX_VERSION)
  169. +#if !defined (_POSIX_VERSION) && !defined (atarist)
  170.  int
  171.  mkfifo (path, mode)
  172.       char *path;
  173. @@ -1884,7 +1884,7 @@
  174.      return ((char *)NULL);
  175.  
  176.    /* Pipe the output of executing STRING into the current shell. */
  177. -  if (pipe (fildes) < 0)
  178. +  if (sim_pipe (fildes) < 0)
  179.      {
  180.        report_error ("Can't make pipes for command substitution!");
  181.        goto error_exit;
  182. @@ -1922,8 +1922,8 @@
  183.      error_exit:
  184.        if (istring)
  185.      free (istring);
  186. -      close (fildes[0]);
  187. -      close (fildes[1]);
  188. +      sim_pipeclose (fildes[0]);
  189. +      sim_pipeclose (fildes[1]);
  190.        return ((char *)NULL);
  191.      }
  192.  
  193. @@ -1949,12 +1949,12 @@
  194.        if ((fildes[1] != fileno (stdin)) &&
  195.        (fildes[1] != fileno (stdout)) &&
  196.        (fildes[1] != fileno (stderr)))
  197. -    close (fildes[1]);
  198. +    sim_pipeclose (fildes[1]);
  199.  
  200.        if ((fildes[0] != fileno (stdin)) &&
  201.        (fildes[0] != fileno (stdout)) &&
  202.        (fildes[0] != fileno (stderr)))
  203. -    close (fildes[0]);
  204. +    sim_pipeclose (fildes[0]);
  205.  
  206.        /* The currently executing shell is not interactive. */
  207.        interactive = 0;
  208. @@ -1982,7 +1982,7 @@
  209.        close_pgrp_pipe ();
  210.  #endif /* JOB_CONTROL && PGRP_PIPE */
  211.  
  212. -      close (fildes[1]);
  213. +      sim_pipeclose (fildes[1]);
  214.  
  215.        if (!istream)
  216.      {
  217. @@ -2020,7 +2020,7 @@
  218.      }
  219.  
  220.        fclose (istream);
  221. -      close (fildes[0]);
  222. +      sim_pipeclose (fildes[0]);
  223.  
  224.        last_command_exit_value = wait_for (pid);
  225.        last_command_subst_pid = pid;
  226. --- 1.1    1994/01/06 15:56:36
  227. +++ trap.c    1994/01/06 00:24:44
  228. @@ -31,7 +31,11 @@
  229.  #endif /* !HAVE_STRING_H */
  230.  
  231.  #include "shell.h"
  232. +#if defined (atarist)
  233. +extern char *signal_names[];
  234. +#else
  235.  #include "signames.h"
  236. +#endif /* !atarist */
  237.  
  238.  /* Flags which describe the current handling state of a signal. */
  239.  #define SIG_INHERITED   0x0    /* Value inherited from parent. */
  240. --- 1.1    1994/01/06 15:44:00
  241. +++ builtins/times.def    1994/01/06 00:24:46
  242. @@ -42,6 +42,10 @@
  243.  #  include <sys/times.h>
  244.  #endif /* !HAVE_RESOURCE */
  245.  
  246. +#if defined (atarist)
  247. +#include <stdio.h>
  248. +#endif /* atarist */
  249. +
  250.  /* Print the totals for system and user time used.  The
  251.     information comes from variables in jobs.c used to keep
  252.     track of this stuff. */
  253. --- 1.1    1994/01/05 23:58:10
  254. +++ lib/readline/bind.c    1994/01/06 00:24:52
  255. @@ -81,7 +81,9 @@
  256.  extern char **rl_funmap_names ();
  257.  
  258.  static int glean_key_from_name ();
  259. +#if !defined(atarist)
  260.  static int stricmp (), strnicmp ();
  261. +#endif /* !atarist */
  262.  
  263.  #if defined (STATIC_MALLOC)
  264.  static char *xmalloc (), *xrealloc ();
  265. @@ -1365,6 +1367,7 @@
  266.  
  267.  /* Whoops, Unix doesn't have strnicmp. */
  268.  
  269. +#if !defined (atarist)
  270.  /* Compare at most COUNT characters from string1 to string2.  Case
  271.     doesn't matter. */
  272.  static int
  273. @@ -1401,6 +1404,7 @@
  274.      }
  275.    return (*string1 | *string2);
  276.  }
  277. +#endif /* !atarist */
  278.  
  279.  /* Determine if s2 occurs in s1.  If so, return a pointer to the
  280.     match in s1.  The compare is case insensitive. */
  281.